package com.sixth.dao;

import com.sixth.entity.Department;
import com.sixth.entity.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {
    int deleteByPrimaryKey(Integer deptid);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer deptid);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    List<Department> selectDepartmentByCondition(@Param("page") int page, @Param("limit") int limit);

    List<Department> sel(@Param("staff") Staff staff, @Param("deptid") Integer deptid, @Param("branchid") Integer branchid);

    List<Department> findAll();

    List<Department> getDeptName(@Param("deptname") String deptname);

}